package cn.frh.feign;

import cn.frh.domain.Store;
import cn.frh.feign.hystrix.StoreServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import util.JsonResult;

@FeignClient(name = "store-server",fallbackFactory = StoreServiceFallbackFactory.class)
@RequestMapping("/store")
public interface StoreService {
    @PostMapping("/add")
    JsonResult add(@RequestBody Store store);
}
